package router

import (
	"gateway/consts"
	"gateway/handler/api"
	"github.com/gin-gonic/gin"
	"github.com/share309/gojwt"
)

func classModel(group *gin.RouterGroup) {
	class := group.Group("/class")
	{
		gojwt.JWTAuth(consts.JWT_KEY)
		class.GET("/classList", api.GetClassList)
		class.GET("/classDetail", api.GetClassDetail)
		class.POST("/createCollect", api.CreateCollect)
		class.GET("/collectDetail", api.GetCollectDetail)
	}
}
